home *** CD-ROM | disk | FTP | other *** search
/ Apple WWDC 1996 / WWDC96_1996 (CD).toast / Technology Materials / MacOS 8 Resources / Developer Tools / Mac OS 8 Interfaces & Libraries / Interfaces / AIncludes / Multiprocessing.a < prev    next >
Encoding:
Text File  |  1996-05-01  |  4.4 KB  |  220 lines  |  [TEXT/MPS ]

  1. ;
  2. ;    File:        Multiprocessing.a
  3. ;
  4. ;    Contains:    Multiprocessing interfaces
  5. ;
  6. ;    Version:    Technology:    System 8
  7. ;                Release:    Universal Interfaces 3.0d3 on Copland DR1
  8. ;
  9. ;    Copyright:    © 1984-1996 by Apple Computer, Inc.  All rights reserved.
  10. ;
  11. ;    Bugs?:        If you find a problem with this file, send the file and version
  12. ;                information (from above) and the problem description to:
  13. ;
  14. ;                    Internet:    apple.bugs@applelink.apple.com
  15. ;                    AppleLink:    APPLE.BUGS
  16. ;
  17. ;
  18.     IF &TYPE('__MULTIPROCESSING__') = 'UNDEFINED' THEN
  19. __MULTIPROCESSING__ SET 1
  20.  
  21.     IF &TYPE('__TYPES__') = 'UNDEFINED' THEN
  22.     include 'Types.a'
  23.     ENDIF
  24.     IF &TYPE('__CODEFRAGMENTS__') = 'UNDEFINED' THEN
  25.     include 'CodeFragments.a'
  26.     ENDIF
  27.     IF &TYPE('__KERNEL__') = 'UNDEFINED' THEN
  28.     include 'Kernel.a'
  29.     ENDIF
  30.     IF &TYPE('__TIMING__') = 'UNDEFINED' THEN
  31.     include 'Timing.a'
  32.     ENDIF
  33.     IF FOR_SYSTEM7_ONLY THEN
  34.  
  35.  
  36.  
  37.  
  38. ; typedef UInt32                         MPTaskOptions
  39.  
  40.  
  41. kDurationImmediate                EQU        0
  42. kDurationForever                EQU        $7FFFFFFF
  43.     ENDIF
  44.     IF FOR_SYSTEM8_PREEMPTIVE THEN
  45. ; typedef TaskID                         MPTaskID
  46.  
  47. ; typedef KernelQueueID                 MPQueueID
  48.  
  49. ; typedef TaskOptions                     MPTaskOptions
  50.  
  51.     ENDIF
  52.     IF FOR_SYSTEM7_AND_SYSTEM8_PREEMPTIVE THEN
  53.  
  54.  
  55.  
  56.  
  57. ; typedef UInt32                         MPSemaphoreCount
  58.  
  59.  
  60. kMPNoID                            EQU        0
  61.     ENDIF
  62.     IF FOR_SYSTEM7_AND_SYSTEM8_PREEMPTIVE THEN
  63. ;
  64. ; extern UInt32 MPProcessors(void )
  65. ;
  66.     IF GENERATINGCFM THEN
  67.         IMPORT_CFM_FUNCTION MPProcessors
  68.     ENDIF
  69.  
  70. ;
  71. ; extern OSStatus MPCreateTask(TaskProc taskEntryPoint, void *taskParameter, ByteCount stackSize, MPQueueID notifyQ, void *notifyParameter1, void *notifyParameter2, MPTaskOptions options, MPTaskID *newTask)
  72. ;
  73.     IF GENERATINGCFM THEN
  74.         IMPORT_CFM_FUNCTION MPCreateTask
  75.     ENDIF
  76.  
  77. ;
  78. ; extern OSStatus MPTerminateTask(MPTaskID task, OSStatus terminationStatus)
  79. ;
  80.     IF GENERATINGCFM THEN
  81.         IMPORT_CFM_FUNCTION MPTerminateTask
  82.     ENDIF
  83.  
  84. ;
  85. ; extern void MPExit(OSStatus terminationStatus)
  86. ;
  87.     IF GENERATINGCFM THEN
  88.         IMPORT_CFM_FUNCTION MPExit
  89.     ENDIF
  90.  
  91. ;
  92. ; extern MPTaskID MPCurrentTaskID(void )
  93. ;
  94.     IF GENERATINGCFM THEN
  95.         IMPORT_CFM_FUNCTION MPCurrentTaskID
  96.     ENDIF
  97.  
  98. ;
  99. ; extern void MPYield(void )
  100. ;
  101.     IF GENERATINGCFM THEN
  102.         IMPORT_CFM_FUNCTION MPYield
  103.     ENDIF
  104.  
  105. ;
  106. ; extern OSStatus MPCreateQueue(MPQueueID *queue)
  107. ;
  108.     IF GENERATINGCFM THEN
  109.         IMPORT_CFM_FUNCTION MPCreateQueue
  110.     ENDIF
  111.  
  112. ;
  113. ; extern OSStatus MPDeleteQueue(MPQueueID queue)
  114. ;
  115.     IF GENERATINGCFM THEN
  116.         IMPORT_CFM_FUNCTION MPDeleteQueue
  117.     ENDIF
  118.  
  119. ;
  120. ; extern OSStatus MPNotifyQueue(MPQueueID queue, void *param1, void *param2, void *param3)
  121. ;
  122.     IF GENERATINGCFM THEN
  123.         IMPORT_CFM_FUNCTION MPNotifyQueue
  124.     ENDIF
  125.  
  126. ;
  127. ; extern OSStatus MPWaitOnQueue(MPQueueID queue, void **param1, void **param2, void **param3, Duration timeout)
  128. ;
  129.     IF GENERATINGCFM THEN
  130.         IMPORT_CFM_FUNCTION MPWaitOnQueue
  131.     ENDIF
  132.  
  133. ;
  134. ; extern OSStatus MPCreateSemaphore(MPSemaphoreCount maxVal, MPSemaphoreCount initVal, MPSemaphoreID *semaphore)
  135. ;
  136.     IF GENERATINGCFM THEN
  137.         IMPORT_CFM_FUNCTION MPCreateSemaphore
  138.     ENDIF
  139.  
  140. ;
  141. ; extern OSStatus MPCreateBinarySemaphore(MPSemaphoreID *semaphore)
  142. ;
  143.     IF GENERATINGCFM THEN
  144.         IMPORT_CFM_FUNCTION MPCreateBinarySemaphore
  145.     ENDIF
  146.  
  147. ;
  148. ; extern OSStatus MPWaitOnSemaphore(MPSemaphoreID semaphore, Duration timeout)
  149. ;
  150.     IF GENERATINGCFM THEN
  151.         IMPORT_CFM_FUNCTION MPWaitOnSemaphore
  152.     ENDIF
  153.  
  154. ;
  155. ; extern OSStatus MPSignalSemaphore(MPSemaphoreID semaphore)
  156. ;
  157.     IF GENERATINGCFM THEN
  158.         IMPORT_CFM_FUNCTION MPSignalSemaphore
  159.     ENDIF
  160.  
  161. ;
  162. ; extern OSStatus MPDeleteSemaphore(MPSemaphoreID semaphore)
  163. ;
  164.     IF GENERATINGCFM THEN
  165.         IMPORT_CFM_FUNCTION MPDeleteSemaphore
  166.     ENDIF
  167.  
  168. ;
  169. ; extern OSStatus MPCreateCriticalRegion(MPCriticalRegionID *region)
  170. ;
  171.     IF GENERATINGCFM THEN
  172.         IMPORT_CFM_FUNCTION MPCreateCriticalRegion
  173.     ENDIF
  174.  
  175. ;
  176. ; extern OSStatus MPEnterCriticalRegion(MPCriticalRegionID region, Duration timeout)
  177. ;
  178.     IF GENERATINGCFM THEN
  179.         IMPORT_CFM_FUNCTION MPEnterCriticalRegion
  180.     ENDIF
  181.  
  182. ;
  183. ; extern OSStatus MPExitCriticalRegion(MPCriticalRegionID region)
  184. ;
  185.     IF GENERATINGCFM THEN
  186.         IMPORT_CFM_FUNCTION MPExitCriticalRegion
  187.     ENDIF
  188.  
  189. ;
  190. ; extern OSStatus MPDeleteCriticalRegion(MPCriticalRegionID region)
  191. ;
  192.     IF GENERATINGCFM THEN
  193.         IMPORT_CFM_FUNCTION MPDeleteCriticalRegion
  194.     ENDIF
  195.  
  196. ;
  197. ; extern LogicalAddress MPAllocate(ByteCount size)
  198. ;
  199.     IF GENERATINGCFM THEN
  200.         IMPORT_CFM_FUNCTION MPAllocate
  201.     ENDIF
  202.  
  203. ;
  204. ; extern void MPFree(LogicalAddress block)
  205. ;
  206.     IF GENERATINGCFM THEN
  207.         IMPORT_CFM_FUNCTION MPFree
  208.     ENDIF
  209.  
  210. ;
  211. ; extern void MPBlockCopy(LogicalAddress sourcePtr, LogicalAddress destPtr, ByteCount bytes)
  212. ;
  213.     IF GENERATINGCFM THEN
  214.         IMPORT_CFM_FUNCTION MPBlockCopy
  215.     ENDIF
  216.  
  217.     ENDIF
  218.     ENDIF ; __MULTIPROCESSING__ 
  219.  
  220.